<form class="page-list-form">
<!-- <div class="page-toolbar">
    <div class="layui-btn-group fl">
        <a href="{:url('add')}" class="layui-btn layui-btn-primary"><i class="aicon ai-tianjia"></i>添加</a>   
    </div>
</div> -->
<div class="layui-form">
    <table class="layui-table mt10" lay-even="" lay-skin="row">
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col width="200">
            <col>
        </colgroup>
        <thead>
            <tr>
                <th>星期</th>
                <th>时间段</th>
                <th>开馆时间</th>
                <th>闭馆时间</th>
                <th>操作</th>
            </tr> 
        </thead>
        <tbody>
            {volist name="data_list" id="v"}
            <tr>
                <td>{$v.week|getWeekName}</td>
                <td>{$v.period|getTimeName}</td>
                <td>{$v.starttime}</td>
                <td>{$v.endtime}</td>
                <td>
                    <div class="layui-btn-group">
                        <div class="layui-btn-group">
                            <a href="{:url('edit?id='.$v['id'])}" class="layui-btn layui-btn-primary layui-btn-sm">编辑</a>
                        </div>
                    </div>
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
</form>
{include file="admin@block/layui" /}